package so.wy.servicecenter.businessbed.service.push;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import so.wy.servicecenter.base.frame.baseopt.BaseOptService;
import so.wy.servicecenter.businessbed.dao.rdb.push_history.PushHistoryDAO;
import so.wy.servicecenter.businessbed.dao.rdb.push_history.PushHistoryDO;
import so.wy.servicecenter.businessbed.service.push.dto.PushHistoryDTO;

@Service
@Scope("prototype")
public class PushHistoryService extends BaseOptService<PushHistoryDAO, PushHistoryDO, PushHistoryDTO> {

    @Override
    protected PushHistoryDTO convert2DTO(PushHistoryDO pushHistoryDO) {
        return new PushHistoryDTO(pushHistoryDO);
    }

    @Override
    protected PushHistoryDO convert2DO(PushHistoryDTO pushHistoryQuery) {
        return pushHistoryQuery.convert2DO();
    }
}
